﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wq.MeetingService.Entities
{
    [Tenant("meeting")]
    [SugarTable("Wq_MeetingRoom")]
    public class MeetingRoomInfo
    {
        /// <summary>
        /// Id  
        /// </summary>
        [SugarColumn(ColumnDescription = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 场地Id
        /// </summary>
        [SugarColumn(ColumnDescription = "场地Id")]
        public long VenueId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnDescription = "会议室名称")]
        public string Name { get; set; }

        /// <summary>
        /// 面积
        /// </summary>
        [SugarColumn(ColumnDescription = "面积", ColumnDataType = "decimal(10,2)")]
        public decimal Area { get; set; }

        /// <summary>
        /// 容纳人数
        /// </summary>
        [SugarColumn(ColumnDescription = "容纳人数")]
        public int People { get; set; }

        /// <summary>
        /// 楼层
        /// </summary>
        [SugarColumn(ColumnDescription = "楼层")]
        public int Foor { get; set; }

        /// <summary>
        /// 长度
        /// </summary>
        [SugarColumn(ColumnDescription = "长度", ColumnDataType = "decimal(10,1)")]
        public decimal Length { get; set; }

        /// <summary>
        /// 宽度
        /// </summary>
        [SugarColumn(ColumnDescription = "宽度", ColumnDataType = "decimal(10,1)")]
        public decimal Width { get; set; }

        /// <summary>
        /// 高度
        /// </summary>
        [SugarColumn(ColumnDescription = "高度", ColumnDataType = "decimal(10,1)")]
        public decimal Height { get; set; }

        /// <summary>
        /// 灯下高度
        /// </summary>
        [SugarColumn(ColumnDescription = "灯下高度", ColumnDataType = "decimal(10,1)")]
        public decimal LampHeight { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        [SugarColumn(ColumnDescription = "价格", ColumnDataType = "decimal(10,2)")]
        public decimal Price { get; set; }

        /// <summary>
        /// 排序序号
        /// </summary>
        [SugarColumn(ColumnDescription = "排序序号")]
        public int Sequence { get; set; }

        /// <summary>
        /// 是否有柱
        /// </summary>
        /// </summary>
        [SugarColumn(ColumnDescription = "是否有柱")]
        public bool IsColumn { get; set; }

        /// <summary>
        /// 布局
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(RoomLayoutInfo.MeetingRoomId))]
        public List<RoomLayoutInfo> Layouts { get; set; }

        /// <summary>
        /// 会议服务设施
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(VenueFacilitieInfo.MeetingRoomId))]
        public List<VenueFacilitieInfo> Facilities { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(MeetingThumbnailInfo.SourceRoomId))]
        public List<MeetingThumbnailInfo> Thumbnails { get; set; }

        /// <summary>
        /// 特色
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(VenuFeaturesInfo.MeetingRoomId))]
        public List<VenuFeaturesInfo> Features { get; set; }

    }
}
